const http=require('http');

const server=http.createServer((request,response)=>{

// let url=new URL('http://127.0.0.1:8000?paddword=5');
let url=new URL(request.url,'http:127.0.0.1:8000/');

let pathname=url.pathname;
console.log(pathname);
let password=(url.searchParams.get('password'));
console.log(password);
// console.log(url)；
    response.end('url new');
});

server.listen(8000,()=>{
    console.log('06服务启动成功');
})